import Vue from 'vue'
import Router from 'vue-router'

import login from './login'
import admin from './admin'

Vue.use(Router)

export default new Router({// 导出路由管理者
  // mode: 'history', // 后端支持可开
  scrollBehavior: () => ({ y: 0 }),
  routes: [
  	...login,
    ...admin
  ]
})

